package cn.huas.util;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
public class OnlineCounterListener implements HttpSessionListener {
	//创造session则递增1
    public void sessionCreated(HttpSessionEvent hse) {
        OnlineCounter.raise();
    }
    //销毁session则递减1
    public void sessionDestroyed(HttpSessionEvent hse) {
        OnlineCounter.reduce();
    } 
}